let conmonDeadline =  new Date(2021, 10 ,12, 23, 59);

let tj = 'tj' //提交
let ch = 'ch'; //撤回
let shNoPass = 'shNoPass'; //审核不通过
let addNewUser = 'addNewUser'; //新增人员

//判断是否移交超过方法、按钮的使用时间
export const afterDeadLine= (methodType,chlx) =>{
    let flag = null
    // let current = new Date(2021, 10 ,13, 23, 59);
    let current = new Date();
    //提交(专家类型除外)、撤回、新增人员、审核不通过，在2021-11-12 23:59:59后不允许再操作
    if(methodType == ch || shNoPass == methodType || addNewUser == methodType || (tj == methodType && chlx != "17")){
      if(current > conmonDeadline){
        flag = true
      }else{
        flag = false
      }
    }else{
      flag = false
    }
    return flag;
}


export const methodTypeList = {
  tj,
  ch,
  shNoPass,
  addNewUser
}
